export default class LastMayday {
  palette() {
    function _textDecoration(text, css) {
      return {
        type: "text",
        text: text,
        css: css,
      };
    }

    return {
      width: "750px",
      height: "1200px",
      background: "#fff",
      views: [
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/banner/banner01.png",
          css: {
            top: 0,
            left: 0,
            width: "750px",
            height: "350px",
            mode: "widthFix",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav01.png",
          css: {
            top: "415px",
            left: "75px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav02.png",
          css: {
            top: "415px",
            left: "320px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav03.png",
          css: {
            top: "415px",
            left: "570px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav04.png",
          css: {
            top: "665px",
            left: "75px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav05.png",
          css: {
            top: "665px",
            left: "320px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav06.png",
          css: {
            top: "665px",
            left: "570px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav07.png",
          css: {
            top: "915px",
            left: "75px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav08.png",
          css: {
            top: "915px",
            left: "320px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        {
          type: "image",
          url: "https://applet-base-api-t.itheima.net/img/nav/nav09.png",
          css: {
            top: "915px",
            left: "570px",
            width: "100px",
            height: "100px",
            mode: "aspectFill",
          },
        },
        _textDecoration("美食", {
          top: "525px",
          left: 125 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("洗浴", {
          top: "525px",
          left: 375 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("结婚吧", {
          top: "525px",
          left: 625 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("卡拉OK", {
          top: "775px",
          left: 125 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("找工作", {
          top: "775px",
          left: 375 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("辅导班", {
          top: "775px",
          left: 625 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("汽车保养", {
          top: "1025px",
          left: 125 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("租房", {
          top: "1025px",
          left: 375 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
        _textDecoration("装修", {
          top: "1025px",
          left: 625 + "px",
          fontSize: "30px",
          color: "#999",
          align: "center",
        }),
      ],
    };
  }
}
